<?php
include "db_Class.php";

$obj = new db_class();
$obj->MySQL();



?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {
	font-size: 12px;
	color: #000066;
}
.style2 {font-size: 12px}
.style3 {font-size: 36px}
.style4 {color: #FFFFFF}
-->
</style>
</head>
<body>
<div align="center" class="style1">
  <p class="style3">Reports of Opinion</p>
  <form name="form1" method="post" action="">
  <?php 
  
  $SQL="select * from feedback";
$obj->sql($SQL);
$i=0;
while($row = mysql_fetch_array($obj->result))
{    ?> 
	

	

  
    <table width="424" border="1">
      <tr>
        <th width="132" bgcolor="#003366" scope="row"><span class="style4">ID</span></th>
        <td width="276"><? echo $row['id']?></td>
      </tr>
      <tr>
        <th bgcolor="#003366" scope="row"><span class="style4">Mobile No </span></th>
        <td><? echo $row['phn_no']?></td>
      </tr>
      <tr>
        <th bgcolor="#003366" scope="row"><span class="style4">Message</span></th>
        <td><? echo $row['comment'] ?></p>
        <p>&nbsp;</p></td>
      </tr>
      <tr>
        <th bgcolor="#003366" scope="row"><span class="style4">Date</span></th>
        <td><? echo $row['m_date']?></td>
      </tr>
      <tr>
        <th bgcolor="#003366" scope="row"><span class="style4">Session</span></th>
        <td><? echo $row['session']?></td>
      </tr>
      <tr bgcolor="#999999">
        <th colspan="2" scope="row">&nbsp;</th>
      </tr>
    </table>
	
    
	<? $i++;
	}
?>	
  </form>
  <p>Total number of SMS= 
  <? echo $i ;
  ?></p>
  
  <span class="style2"></span></div>
</body>
</html>
